const express = require( 'express' );
const router = express.Router()

const stuModel = require( '../db/models/stuModel' )

router.post( '/search', async ( req, res ) => {
    // console.log(req.body);
    // res.setHeader( "Access-Control-Allow-Origin", "*" );
    let totalData = await stuModel.search(req.body);
    console.log(totalData);
    res.status( 200 ).send( totalData );
} );

module.exports = router